package com.atwisdom.star.core.bsl.planner.entity;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDate;
import java.util.Date;

/**
 * 销售订单按背番、交货日期分组，数量汇总，订单编号逗号分隔
 */
@Data
@NoArgsConstructor
public class SaleOrderSummary {
    //背番
    private String materialBCode;
    //交货日期
    private LocalDate deliveryDate;
    //销售数量汇总 或 内示工作日平均数量
    private int saleQuantity;
    //内示计划数量
    private int totalQuantity;
    //0:销售定单，1：月内示
    private int orderType;
    //内示月工作日天数
    private int workDay;

    //内示年月
    private String yearMonth;

    public SaleOrderSummary(String materialBCode, LocalDate deliveryDate, int saleQuantity, int orderType) {
        this.materialBCode = materialBCode;
        this.deliveryDate = deliveryDate;
        this.saleQuantity = saleQuantity;
        this.orderType = orderType;
    }
}